package com.neuedu.his.common.core;

import com.neuedu.his.common.Page;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

/**
 * 项目：      his
 * 类名:       UnCRUDBaseController
 * 创建时间：  2023/12/15 09：32
 * 描述 :
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 */
public class UnCRUDBaseController  extends BaseController<Object>{
    @Override
    public BaseService getService() {
        return null;
    }

    @Override
    public Page list(HttpServletRequest req, HttpServletResponse resp) throws Exception {
       throw new Exception("非法请求");
    }

    @Override
    public Map save(HttpServletRequest req, HttpServletResponse resp) throws Exception {
        throw new Exception("非法请求");
    }

    @Override
    public <E> E queryById(HttpServletRequest req, HttpServletResponse resp) throws Exception {
        throw new Exception("非法请求");
    }

    @Override
    public Map update(HttpServletRequest req, HttpServletResponse resp) throws Exception {
        throw new Exception("非法请求");
    }

    @Override
    public Map deleteById(HttpServletRequest req, HttpServletResponse resp) throws Exception {
        throw new Exception("非法请求");
    }
}
